import request from '@/router/axios';

const tenantId = JSON.parse(localStorage.getItem("saber-tenantId")).content;
export const getList = (current, size, params) => {
  return request({
    url: '/api/emerTeam/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/emerTeam/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/emerTeam/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/emerTeam/save',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/emerTeam/update',
    method: 'post',
    data: row
  })
}


export const getsex = () => {
  return request({
    url: '/api/blade-system/dict-biz/dictionary?code=sex',
    method: 'get'
  })
}
export const getzw = () => {
  return request({
    url: "/api/blade-system/post/select?tenantId=" + tenantId,
    method: 'get'
  })
}

